import {
	sendRequest
} from '../request'


/**
 *  获取行业数据
 * */
export function industry() {
	const json = {
		url: '/api/terminal/machine/type/findGigIndustry',
		method: 'get',
	}
	return sendRequest(json)
}

// 零工类型
export function gigNamePage(data) {
	const json = {
		url: '/api/terminal/machine/type/gigNamePage',
		method: 'get',
		data: data,
	}
	return sendRequest(json)
}

// 零工类型详情
export function gigJobPage(data) {
	const json = {
		url: '/api/terminal/machine/job/gigJobPage',
		method: 'get',
		data: data,
	}
	return sendRequest(json)
}

// 零工详情
export function details(gigJobIdAES) {
	const json = {
		url: '/api/terminal/machine/job/' + `${gigJobIdAES}`,
		method: 'get',
	}
	return sendRequest(json)
}

// 零工详情
export function apply(data) {
	const json = {
		url: '/api/terminal/biz/apply',
		method: 'post',
		data: data
	}
	return sendRequest(json)
}